package com.mobile.weather.client;

import com.mobile.weather.domain.Users;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="COMMON-CLIENT9191")
public interface UserClient {

    @RequestMapping("/list/{userId}/{businessId}")  // /list/1001/3333
    public String list(@PathVariable("userId") Integer userId, @PathVariable("businessId") Integer businessId);

    @RequestMapping("/listCart")  // /list?uId=1001&bId=3333
    public String listCart(@RequestParam("uId") Integer userId, @RequestParam("bId") Integer businessId);

}
